<?php

namespace app\uniapp\service;

use think\db\Query;

interface UniBaseInterface
{

    function initialize();

    function find();

    function paginate(int $pageNum);

    function select();

    function create(array $data);

    function update(array $data, array $where);

    function delete();

    function setPkWhere(string|int $key);

    function setWhere(array $where);

    function setLimit(int $limit);

    function setOrder(string $order);

    function setForce(bool $force);

    function setWith(array $with);

    function setStatus(int $status);

    function query() : Query;

    function formatData(array $data) : array;
}
